#include <iostream>
#include <vector>
#include <algorithm>

using std::vector;
using std::cout;
using std::swap;

void bubbleSort(vector<int>& v)
{
    for(size_t i = 0;i < v.size() - 1; ++ i)
    {
        for(size_t j = 0;j < v.size() - i - 1; ++ j)
        {
            if(v[j] > v[j + 1]) swap(v[j],v[j + 1]);
        }
    }
}

int main(int argc, char const *argv[])
{
    vector<int> v({5, 2, 6, 67, 7, 4, 3, 6, 9, 44, 32});
    bubbleSort(v);
    for (auto &num : v)
    {
        cout << num << " ";
    }
    cout << "\n";
    getchar();
    return 0;
}
